<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文件上传测试</title>
    <link rel="stylesheet" href="../css/filepond.css">
    <script src="../js/filepond.js"></script>
</head>
<body>
<div style="width: 200px; height: 100px;">
    <input type="file" id="file" name="fileName" />
</div>
</body>
<script>

    FilePond.setOptions({
        server: '/api/file/upload'
    });

    const inputElement = document.querySelector('input[type="file"]');
    const pond = FilePond.create( inputElement );

</script>
</html>